# Contributor: Eric Trombly <etrombly@yahoo.com>
# Maintainer:
pkgname=picotts
pkgver=0.1
pkgrel=0
pkgdesc="Pico TTS: text to speech voice synthesizer from SVox"
url="https://github.com/naggety/picotts"
arch="all"
license="Apache-2.0"
makedepends="popt-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-libs"
source="https://github.com/naggety/picotts/archive/e3ba46009ee868911fa0b53db672a55f9cc13b1c.zip"
builddir="$srcdir/picotts-e3ba46009ee868911fa0b53db672a55f9cc13b1c/pico"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="e65b46aaeb65cf151e94b8740d6ac9a691613de973cb7d10e1a39b71ef7dead53525602209c99dfefbcb5abed3520321f45e9f324efae7b28af72a10e3f06ba5  e3ba46009ee868911fa0b53db672a55f9cc13b1c.zip"
